package xyz.syyrjx.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author Mr.Wan
 * @date 2022/10/10 - 21:29
 */
public class User implements Serializable {
    private final static long serialVersionUID = 0;

    private Integer uid;
    private String username;
    private List<String> roles;
    private List<String> authorities;
    //...用户的其它信息省略

    public User() {
    }

    public User(Integer uid, String username, List<String> roles, List<String> authorities) {
        this.uid = uid;
        this.username = username;
        this.roles = roles;
        this.authorities = authorities;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public List<String> getAuthorities() {
        return authorities;
    }

    public void setAuthorities(List<String> authorities) {
        this.authorities = authorities;
    }
}
